package com.lzs.DAO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lzs.PO.Mechanism;

public interface MechanismDAO {

	public List<Mechanism> findMechanismList(@Param("keyword") String keyword);

	public List<Mechanism> findMechanismPagelist(@Param("keyword") String keyword, @Param("startIndex") int startIndex,
			@Param("pageSize") Integer pageSize);

	public void addMechanism(Map<String, Object> map);

	public long countMechanismByName(@Param("mechanism_name")String mechanism_name);

	public Mechanism findMechanismById(@Param("mechanism_id")String mechanism_id);

	public void updateMechanismById(Map<String, Object> map);

	public void deleteMechanismById(@Param("mechanism_id")String mechanism_id);

}
